* {
    margin: 0;
    padding: 0;
}

#div {
    width: 100px;
    height: 100px;
    background: red;
    position: relative;
    left: 0;
    transition: 300ms;
}